package com.bdqn.entity;

import javax.xml.crypto.Data;
import java.io.Serializable;

/**
 * Address
 *  ch02 示例18 添加地址实体类
 * @aurhor Administrator  whs
 * @since 2024/6/17
 */
public class Address implements Serializable {

    private int id ;     // 主键ID
    private String contact ;     // 联系人
    private String addressDesc ;     // 地址
    private String postCode ;     // 编码
    private String tel ;     // 联系电话
    private int createdUserId ;     // 创建者
    private Data createdTime ;     // 创建时间
    private int  updatedUserId ;     // 更新者
    private Data updatedTime ;     // 更新时间
    private int userId ;     // 用户ID

    public Address() {
    }

    public Address(String contact, String addressDesc, String postCode, String tel, int createdUserId, Data createdTime, int updatedUserId, Data updatedTime, int userId) {
        this.contact = contact;
        this.addressDesc = addressDesc;
        this.postCode = postCode;
        this.tel = tel;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getAddressDesc() {
        return addressDesc;
    }

    public void setAddressDesc(String addressDesc) {
        this.addressDesc = addressDesc;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(int createdUserId) {
        this.createdUserId = createdUserId;
    }

    public Data getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Data createdTime) {
        this.createdTime = createdTime;
    }

    public int getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(int updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public Data getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Data updatedTime) {
        this.updatedTime = updatedTime;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }
}
